addSegment

open fun addSegment(label: String, portion: Double, color: Color): ThermometerGraph.Segment
open fun addSegment(label: String, portion: Double, color: Color, target: Any): ThermometerGraph.Segment

Add a stacked segment to the graph with the given label, portion and color


open fun addSegment(label: String, portion: Double): ThermometerGraph.Segment

Add a stacked segment to the graph with the given label, portion and use an automatic color


open fun addSegment(label: String, portion: Double, target: Any): ThermometerGraph.Segment

Add a stacked segment to the graph with the given label, portion, an automatically selected color and the given target